<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<style type="text/css">
/*	#tid{
		display:none;
	}
	input[type=submit]{
		background:#00f;
		border:1px solid #ccc;
	}*/
</style>
<body>
<!-- <form>
	<p>name:</p>
	<p><input type="file" name="" value='jane' id='tid'></p>
	<p><img src="2.png" id='up'></p>
	<p id='pid'></p>
	<p><input type="submit" id='but' name="" value='ok'></p>
</form> -->




<!-- 
<form action='go.php' id='fid'>
	<p>上传文件：</p>
	<p><input type="file" id='tid'></p>
</form>
<h1>linux 技术</h1>
	<p>linux is very muchlinux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much linux is very much</p>
<h1>提交表单</h1>
<button id='submit'>ok</button>
<button id='reset'>cancel</button> -->


	<!-- //阻止A链接默认行为 -->
<!-- <a href="javascript:" id='aid'>百度</a> -->

<!-- 	//表单提交默认行为
<form action='javascript:' id='aid'>
	<p>name:</p>
	<p><input type="text" name="" value='jane'></p>
	<p>code:</p>
	<p><input type="text" name=""></p>
	<p><input type="submit" value='ok'></p>
</form> -->




<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
<h1>linux is verry much</h1>
</body>
<script type="text/javascript">
	tot=document.documentElement.scrollHeight;	
	hei=document.documentElement.clientHeight;
	diff=tot-hei;	
window.onscroll=function(){
sc=document.body.scrollTop;
if(sc>=diff){
document.body.style.background='#f0f';
}else{
document.body.style.background='#fff';
}

}





	//表单提交默认行为
// aidobj=document.getElementById('aid');
// x=2;
// aidobj.onsubmit=function(){
// if(x<3){
// 	alert(1);
// 	return false;
// }else{
// 	this.action='go.php';
// }
// }







	//阻止A链接默认行为
// aidobj=document.getElementById('aid');
// x=5;
// aidobj.onclick=function(){
// if(x<3){
// 	alert(1);
// 	return false;
// }else{
// 	location='http://www.baidu.com';
// }
// }



// fidobj=document.getElementById('fid');
// submitobj=document.getElementById('submit');
// resetobj=document.getElementById('reset');
// submitobj.onclick=function(){
// 	fidobj.submit();
// }
// resetobj.onclick=function(){
// 	fidobj.reset();
// }




	// tidobj=document.getElementById('tid');
	// upobj=document.getElementById('up');
	// pidobj=document.getElementById('pid');
	// upobj.onclick=function(){
	// 	tidobj.click();
	// }
	// sobj=document.getElementById('s');
	// tidobj.onchange=function(){
	// 	pidobj.innerHTML=this.value;
	// }




	// tidobj.onfocus=function(){
	// 	this.select();
	// }
	// tidobj.onkeydown=function(event){
	// 	kc=event.keyCode;
	// 	if(kc==32){
	// 		this.blur();
	// 	}
	// }
	// tidobj.focus();



</script>
</html>